package com.rabbiter.service.Impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.rabbiter.entity.ApprovalFlows;
import com.rabbiter.mapper.ApprovalFlowsMapper;
import com.rabbiter.service.ApprovalFlowsService;
@Service
public class ApprovalFlowsServiceImpl implements ApprovalFlowsService{

    @Resource
    private ApprovalFlowsMapper approvalFlowsMapper;

    @Override
    public int deleteByPrimaryKey(Integer flowId) {
        return approvalFlowsMapper.deleteByPrimaryKey(flowId);
    }

    @Override
    public int insert(ApprovalFlows record) {
        return approvalFlowsMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(ApprovalFlows record) {
        return approvalFlowsMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(ApprovalFlows record) {
        return approvalFlowsMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(ApprovalFlows record) {
        return approvalFlowsMapper.insertSelective(record);
    }

    @Override
    public ApprovalFlows selectByPrimaryKey(Integer flowId) {
        return approvalFlowsMapper.selectByPrimaryKey(flowId);
    }

    @Override
    public int updateByPrimaryKeySelective(ApprovalFlows record) {
        return approvalFlowsMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ApprovalFlows record) {
        return approvalFlowsMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<ApprovalFlows> list) {
        return approvalFlowsMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<ApprovalFlows> list) {
        return approvalFlowsMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<ApprovalFlows> list) {
        return approvalFlowsMapper.batchInsert(list);
    }

}
